export function request(url, method, data) {
	var header = {
		'content-type': 'application/json',
		'token': uni.getStorageSync('token')
	}
	return new Promise((resolve, reject) => {
		uni.request({
			url: url,
			method: method,
			data: data,
			header:header,
			success: (res) => {
				resolve(res.data);
			},
			fail: (err) => {
				reject(err);
			}
		});
	});
}